package serverproject.model;

import java.io.PrintWriter;
import java.net.Socket;

/**
 * Connection에 대한 정보를 담고있는 클래스
 * 
 * @author 201011832 김남중
 * 
 */
public class Connection
{
	private Socket		socket;
	private PrintWriter	writer;
	private Account account;

	/**
	 * 
	 * @param socket
	 * @param writer
	 */
	public Connection(Socket socket , PrintWriter writer, Account account)
	{
		this.socket = socket;
		this.writer = writer;
		this.account = account;
	}

	/**
	 * @return the socket
	 */
	public Socket getSocket()
	{
		return socket;
	}

	/**
	 * @param socket
	 *            the socket to set
	 */
	public void setSocket(Socket socket)
	{
		this.socket = socket;
	}

	/**
	 * @return the writer
	 */
	public PrintWriter getWriter()
	{
		return writer;
	}

	/**
	 * @param writer
	 *            the writer to set
	 */
	public void setWriter(PrintWriter writer)
	{
		this.writer = writer;
	}

	/**
	 * @return the account
	 */
	public Account getAccount()
	{
		return account;
	}

	/**
	 * @param account the account to set
	 */
	public void setAccount(Account account)
	{
		this.account = account;
	}

}
